export const RULE_FORM_ITEMS = [
  {
    label: '品类名称',
    prop: 'categoryName',
    type: 'input'
  },
  {
    label: '区域名称',
    prop: 'saleAreaName',
    type: 'input'
  },
]

export const RULE_TABLE_COLUMNS = [
  {
    title: '异常信息',
    render: (h, { row }) => <span class="error_color">{ row.validResultStr }</span>,
    sortable: true
  },
  {
    title: '品类编码',
    key: 'categoryNo'
  },
  {
    title: '品类名称',
    key: 'categoryName'
  },
  {
    title: '区域名称',
    key: 'saleAreaName'
  },
]

export const PRODUCT_FORM_ITEMS = [
  {
    label: '品类名称',
    prop: 'categoryName',
    type: 'input'
  },
  {
    label: '区域名称',
    prop: 'saleAreaName',
    type: 'input'
  },
  {
    label: '品牌',
    prop: 'brandName',
    type: 'input'
  },
]

export const PRODUCT_TABLE_COLUMNS = [
  {
    title: '品类编码',
    key: 'categoryNo'
  },
  {
    title: '品类名称',
    key: 'categoryName'
  },
  {
    title: '区域名称',
    key: 'saleAreaName'
  },
  {
    title: '品牌ID',
    key: 'brandId'
  },
  {
    title: '品牌名称',
    key: 'brandName'
  },
  {
    title: 'SPU编码',
    key: 'spuNo'
  },
  {
    title: 'SKU编码',
    key: 'skuNo'
  },
  {
    title: '商品名称',
    key: 'productName'
  },
  {
    title: '规格',
    key: 'specialDetail'
  },
  {
    title: '计量单位',
    key: 'unitName'
  },
]
